package io.seata.sample.dao;

import java.math.BigDecimal;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
/**
 * @Author: linKe
 * @Date: 2022/1/25 10:42
 * @FileName: AccountDao
 * @version: 1.0
 * @Description: 描述
 */
public interface AccountMapper {

    /**
     * 扣减账户余额
     *
     * @param userId 用户id
     * @param money  金额
     */
    void decrease(@Param("userId") Long userId, @Param("money") BigDecimal money);
}

